import http from "@/utils/request";

export default{
    /**
     * 查询列表
     * @param  params
     * @returns
     */
    // async getYsbList(params){
    //     return await http.get("/api/ysbsbyzjl/listToYsbsbyzjl",params);
    // },
    async getList(pageNo,pageSize,startDate,endDate){
        return await http.get("/api/scCyjYxsj/getList",{pageNo,pageSize,startDate,endDate});
    },
    /**
    * 添加
    * @returns
    */
    async addYsb(params){
        return await http.post("/api/ysbsbyzjl/add",params)
    },
    /**
    * 修改
    * @returns
    */
    async updateYsb(params){
        return await http.put("/api/ysbsbyzjl/update",params)
    },

    //删除
    async delete(params) {
        return await http.delete('api/ysbsbyzjl/delete', params);

    },
    //批量删除
    async Bdelete(params) {
        return await http.post('/api/ysbsbyzjl/batchDelete', params);

    }
}
